import request from '@/utils/request'

// 获取花卉列表
export function getFlowerList(params) {
  return request({
    url: '/api/flowers/page',
    method: 'get',
    params
  })
}

// 获取花卉详情
export function getFlowerById(id) {
  return request({
    url: `/api/flowers/${id}`,
    method: 'get'
  })
}

// 获取文创产品列表
export function getCreativeProductList(params) {
  return request({
    url: '/api/creative-products/page',
    method: 'get',
    params
  })
}

// 获取文创产品详情
export function getCreativeProductById(id) {
  return request({
    url: `/api/creative-products/${id}`,
    method: 'get'
  })
} 